package com.jumi.microservice.material.service;

import com.jumi.microservice.common.base.dto.ResponseResult;
import com.jumi.microservice.material.dto.supplier.JmSupplierResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author ssk
 * @create 2020/8/26 14:21
 **/
@RequestMapping("/supplier")
public interface IJmSupplierService {
    @GetMapping("/findAllByName")
    ResponseResult<List<JmSupplierResponse>> findAllByName(@RequestParam("supplierName") String supplierName);

    @GetMapping("/findOne")
    ResponseResult<JmSupplierResponse> findById(@RequestParam("id") Long id);

    @GetMapping("/list")
    ResponseResult<List<JmSupplierResponse>> list();
}
